﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewStockCard.aspx.cs" Inherits="Maintain_supplier_information.ViewStockCard" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1
        {
            width: 100%;
        }
        .auto-style2
        {
            height: 26px;
        }
        .auto-style3
        {
            width: 346px;
        }
        .auto-style4
        {
            height: 26px;
            width: 346px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: 320px">
    
        <asp:Label ID="lbl_stockcard" runat="server" style="font-size: xx-large" Text="Stock Card"></asp:Label>
    
    </div>
          <fieldset>
    <legend>Search by:</legend>
   
              <table class="auto-style1">
                  <tr>
                      <td>
                          <asp:Label ID="lbl_Category" runat="server" Text="Category:"></asp:Label>
                          <asp:DropDownList AutoPostBack="true" ID="ddl_category" runat="server" OnSelectedIndexChanged="ddl_category_SelectedIndexChanged">
                          </asp:DropDownList>
                      </td>
                      <td>
                          <asp:Label ID="lbl_ItemName" runat="server" Text="ItemName:"></asp:Label>
                          <asp:DropDownList ID="ddl_itemName" runat="server">
                          </asp:DropDownList>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <asp:Label ID="lbl_FromDate" runat="server" Text="From Date:"></asp:Label>
                          <asp:TextBox ID="txt_fromDate" runat="server"></asp:TextBox>
                          <asp:ImageButton ID="imgbtn_frmdate" runat="server" Height="19px" ImageUrl="~/Images/calendar.jpg" OnClick="imgbtn_frmdate_Click" Width="39px" />
                          <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar>
                      </td>
                      <td>
                          <asp:Label ID="lbl_toDate" runat="server" Text="To Date:"></asp:Label>
                          <asp:TextBox ID="txt_toDate" runat="server"></asp:TextBox>
                          <asp:ImageButton ID="imgbtn_todate" runat="server" Height="20px" ImageUrl="~/Images/calendar.jpg" OnClick="imgbtn_todate_Click" Width="34px" />
                          <asp:Calendar ID="Calendar2" runat="server" OnSelectionChanged="Calendar2_SelectionChanged"></asp:Calendar>
                      </td>
                  </tr>
              </table>
   
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:Button ID="btn_View" runat="server" OnClick="btn_View_Click" Text="View" />
   
  </fieldset>
        <table class="auto-style1">
            <tr>
                <td class="auto-style3">
                    <asp:Label ID="lbl_1stSupplier" runat="server" Text="1st Supplier:"></asp:Label>
&nbsp;<asp:Label ID="lbl_fsup" runat="server" Text="Label"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_itemCode" runat="server" Text="Item Code:"></asp:Label>
                    <asp:Label ID="lbl_ic" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <asp:Label ID="lbl_2ndsupplier" runat="server" Text="2nd Supplier:"></asp:Label>
                    <asp:Label ID="lbl_secsup" runat="server" Text="Label"></asp:Label>
                </td>
                <td class="auto-style2">
                    <asp:Label ID="lbl_itemDescription" runat="server" Text="Item Description:"></asp:Label>
                    <asp:Label ID="lbl_itemdesc" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style3">
                    <asp:Label ID="lbl_3rdSupplier" runat="server" Text="3rd Supplier:"></asp:Label>
                    <asp:Label ID="lbl_thirdsup" runat="server" Text="Label"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lbl_UOM" runat="server" Text="UOM:"></asp:Label>
                    <asp:Label ID="lbl_uom_val" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:GridView ID="Gdview_Stockcard" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="Date">
                    <ItemTemplate>
                    <asp:Label ID="Date" runat="server" Text='<%# Eval("Date") %>'></asp:Label>
                        </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                        <asp:Label ID="Description" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quantity">
                    <ItemTemplate>
                        <asp:Label ID="Quantity" runat="server" Text='<%# Eval("AdjustedQty") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Balance">
                    <ItemTemplate>
                        <asp:Label ID="Balance" runat="server" Text='<%# Eval("Balance") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>

        </asp:GridView>
    </form>
</body>
</html>
